package br.com.arg.aplica.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import br.com.arg.aplica.util.Obrigatorio;
import br.com.arg.aplica.util.StatusSistema;

/**
 * @author Adenir Ribeiro Gomes
 **/
@Entity
@XmlRootElement
public class Pendencia implements Serializable {
	/** Default value included to remove warning. Remove or modify at will. **/
	protected static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	@Obrigatorio(min="hoje")
	private Date dataPendencia;
	
	@Obrigatorio 
	private String pendencia;
	
	@Enumerated
	private StatusSistema status;

	public Pendencia() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDataPendencia() {
		return dataPendencia;
	}

	public void setDataPendencia(Date dataPendencia) {
		this.dataPendencia = dataPendencia;
	}

	public String getPendencia() {
		return pendencia;
	}

	public void setPendencia(String pendencia) {
		this.pendencia = pendencia;
	}

	public StatusSistema getStatus() {
		return status;
	}

	public void setStatus(StatusSistema status) {
		this.status = status;
	}
	
}